<?php

/**
 * Description of PersonHomePanelclass
 *
 * @author adhamhelal
 */
class PersonAddressPanel extends QPanel{
        protected $mctAddress;

        //Controls
        protected $lstCountry;
        protected $lstGovernate;
        protected $lstCity;
        protected $lstArea;
        protected $txtAddress;

        public function __construct($objParentObject,$mctAddress, $strControlId = null) {

                // Call the Parent
                try {
                        parent::__construct($objParentObject, $strControlId);
                } catch (QCallerException $objExc) {
                        $objExc->IncrementOffset();
                        throw $objExc;
                }

                // Setup Template
                $this->strTemplate = __DOCROOT__.__PERSON__ .  '/tpl/qpanel.tpl.php';
                // Set the Person Meta Conrol

                $this->mctAddress=$mctAddress;
                // Call MetaControl's methods to create qcontrols 
                /////Temperarly DISABLED Country
                //$this->lstCountry = $this->mctAddress->lstCountry_Create();
                //$this->lstCountry->SetParentControl($this);

                $this->lstGovernate = $this->mctAddress->lstGovernate_Create();
                $this->lstGovernate->SetParentControl($this);

                $this->lstCity = $this->mctAddress->lstCity_Create();
                $this->lstCity->SetParentControl($this);

                $this->lstArea = $this->mctAddress->lstArea_Create();
                $this->lstArea->SetParentControl($this);
                
                $this->txtAddress = $this->mctAddress->txtAddress_Create();
                $this->txtAddress->SetParentControl($this);
               
    }

    public function Validate() {
        $blnToReturn = true;


        return $blnToReturn;
    }
}
?>
